﻿using System;
using System.Collections.Generic;
using System.Linq;
using System.Text;

namespace DutchNationalFlagProblem
{
    class Program
    {
        static void Main(string[] args)
        {
            int[] input = { -4, -5, 0, 3, 7, 0, -2, -5, 7, 0 };
            int[] result = input.dutchFlagSort(0, 0);

            for (int i = 0; i < result.Length; i++)
            {
                Console.Write(" {0} ", input[i]);
            }

            Console.Read();
        }
    }
}
